/**
 * @Description:
 * @Author BPF
 * @create 2021/8/19 17:26
 */
import '@/style/index.less'
import { createApp } from 'vue'
import router from '@/router/index.js'
import store from '@/store/'
import plugins from './plugins'
import App from './App.vue'
import { sync } from '~vuex-helper'

const app = createApp(App)

app.config.productionTip = false

app.config.globalProperties.version = '1.0.0'

app.config.errorHandler = (err, vm, info) => {
  // 处理错误
  // `info` 是 Vue 特定的错误信息，比如错误所在的生命周期钩子
  const loading_ = sync('app/loading')
  loading_.value = false
  console.log(err, vm, info)
}

app.use(store).use(router).use(plugins).mount('#app')
